package org.zcq100.data;

public class LinkListTest {
public static void main(String[] args) {
	LinkList<String> list=new LinkList<String>();
	
	list.append("aaaaaaa");
	list.append("rrrrrrr");
	list.append("hhhhhhh");
	list.append("ddddddd");
	list.append("ccccccc");
	list.append("bbbbbbb");
	list.append("eeeeeee");
	list.append("wwwwww");
	list.append("aaaaaaa");
	list.append("bfffggf");
	list.append("rrrerer");
	list.append("yuuuuuuu");
	
	list.insert(2, "zcq100");
	list.insert(-1, "xxxxxxxxx");

	

	System.out.println(list.delete(2));
	System.out.println(list.locat("zcq100"));
	
	for (int i = 0; i < list.getLength(); i++) {
		System.out.println(list.getItem(i));
	}
}
}
